#ifndef __LED_H
#define	__LED_H

#include "stm32f10x.h"
#include "typedef.h"

typedef enum _LED_STATUS
{
    LED_TURN_OFF = 0,
    LED_TURN_ON,
    LED_TURN_FLASH
} LED_STATUS;

typedef enum _LED_NAME
{
    LED_1 = 0,
    LED_2,
	LED_NUM
} LED_NAME;

void led_init(void);
void led_ctrl(LED_NAME name,LED_STATUS sta);

#endif
